package com.qf.service.impl;

import com.qf.mapper.CategoriesMapper;
import com.qf.pojo.Categories;
import com.qf.service.ICategoriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CategoriesServiceImpl implements ICategoriesService {

   private CategoriesMapper categoriesMapper;
    @Autowired
    public void setCategoriesMapper(CategoriesMapper categoriesMapper) {
        this.categoriesMapper = categoriesMapper;
    }

    @Override
    public Categories findById(int id) {
        return null;
    }

    @Override
    public void addCategories(Categories categories) {
        categoriesMapper.addCategories(categories);
    }

    @Override
    public void addCategorie(String categoryname) {

        categoriesMapper.addCategorie(categoryname);

    }
}
